#include "SIM900A.h"
#include "usart.h"
#include "stdio.h"

char a[60];
uint8_t b=0x1A;

void sim900a_help(void)
{
	sprintf(a,"AT+CSMP=17,167,0,8\r\n");
	HAL_UART_Transmit(&huart5,(uint8_t*)a,20,20);
	HAL_Delay(500);
	sprintf(a,"AT+CMGF=1\r\n");
	HAL_UART_Transmit(&huart5,(uint8_t*)a,11,20);
	HAL_Delay(500);
	sprintf(a,"AT+CSCS=\"UCS2\"\r\n");
	HAL_UART_Transmit(&huart5,(uint8_t*)a,16,20);
	HAL_Delay(500);
	sprintf(a,"AT+CMGS=\"00310035003300320037003200310036003900330038\"\r\n");
	HAL_UART_Transmit(&huart5,(uint8_t*)a,56,20);
	HAL_Delay(500);
	sprintf(a,"60A380055DF264545012002C8BF7589E63F4002E");
	HAL_UART_Transmit(&huart5,(uint8_t*)a,40,20);
	HAL_Delay(500);
	HAL_UART_Transmit(&huart5,&b,1,20);
	HAL_Delay(500);
}
